package com.bh.statistics.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.beans.Transient;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.transaction.annotation.Transactional;

@Data
@TableName(value = "t_sys_region")
public class TSysRegion {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 区域编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 描述
     */
    @TableField(value = "`desc`")
    private String desc;

    /**
     * 层级
     */
    @TableField(value = "`level`")
    private String level;

    /**
     * 父级ID
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 别名
     */
    @TableField(value = "`alias`")
    private String alias;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private Double longitude;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private Double latitude;

    /**
     * 是否叶子节点
     */
    @TableField(value = "is_leaf")
    private Integer isLeaf;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private Integer status;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "create_user_id")
    private Integer createUserId;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "update_user_id")
    private Integer updateUserId;

    @TableField(value = "organizationId")
    private Integer organizationid;

    @TableField(value = "organizationName")
    private String organizationname;
    @TableField(exist = false)
    private List<TSysRegion> children;
    @TableField(exist = false)
    private String value;
    @TableField(exist = false)
    private boolean selected = false;
    @TableField(exist = false)
    private boolean disabled =false;
    @TableField(exist = false)
    private String parent;
}